const path = require("path");
var webpack = require("webpack");
module.exports = {
  publicPath: "./",
  runtimeCompiler: true,
  pages: {
    index: {
      entry: "src/app-main/main.js",
      template: "src/app-main/index.html",
    }
  },
  devServer: {
    port: 8081,
  },
  configureWebpack: {
    devtool: "#eval-source-map",
    resolve: {
      alias: {
        "@static": path.join(__dirname, "public", "static"),
        "app-main": path.join(__dirname, "src/app-main"),
        src: path.join(__dirname, "src")
      },
    },
  },
};
